I am trying to take an object heading and put the value into an attribute. I want to keep the bold of the heading, but have not been successful. When I print richTextWithOle(o."Object Heading") in the editor, a \b does not appear as I would expect. I have worked with DXL a little, but have not used the richText feature before. How can I take the value of the Object Heading and then make it bold in the attribute?
|
Re: Help with richText of object Heading value in an attribute So if you want to copy the Object Heading to some other attribute use: {code} Object o = current o."Object Short Text" = richText "{ \\b" o."Object Heading" "}" [code} ie put RTF command for bold "{ \\b" before the value, end the RTF with "}" and copy that as rich text by using the richText function. There are some examples of rich text processing in DOORS DXL in the DEL Help section "Rich text strings". |
Re: Help with richText of object Heading value in an attribute |